modified jquery.formvalidation.js to refresh language var after jQueryFormUtils.LANG extended with customized localization strings #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
minimized version needs updating after you approve this pull
I discovered an issue when trying to use localization (changing the error dialogs to show customized strings).
when creating an var object to hold customized strings for the error dialogs, and only setting values for a 1 or 2 of those strings, i.e. errorTitle, requiredFields, etc., the other default values were showing as "undefined".
tracing through the code, it appeared the object being passed to the validate and doValidate functions was not the updated jQueryFormUtils.LANG object, but the var object that contained the customized strings.
so I modified the code that extended the jQueryFormUtils.LANG object, to refresh the language var with the updated jQueryFormUtils.LANG object.
I did that in two places, in the validate and doValidation functions, as you'll see if my branch.